package logs

import (
	"fmt"
	"log"
	"os"
)

const (
	Prefix = "[go-base]"
)

var (
	Info          *log.Logger
	InfoPrefix    = fmt.Sprintf("%s %s ", Prefix, "[INFO]")
	Warning       *log.Logger
	WarningPrefix = fmt.Sprintf("%s %s ", Prefix, "[WARNING]")
	Error         *log.Logger
	ErrorPrefix   = fmt.Sprintf("%s %s ", Prefix, "[ERROR]")
	Debug         *log.Logger
	DebugPrefix   = fmt.Sprintf("%s %s ", Prefix, "[DEBUG]")
)

func init() {
	Info = log.New(os.Stdout, InfoPrefix, log.Ldate|log.Ltime|log.Lshortfile)
	Warning = log.New(os.Stdout, WarningPrefix, log.Ldate|log.Ltime|log.Lshortfile)
	Error = log.New(os.Stdout, ErrorPrefix, log.Ldate|log.Ltime|log.Lshortfile)
	Debug = log.New(os.Stdout, DebugPrefix, log.Ldate|log.Ltime|log.Lshortfile)
}
